// import { cookie } from 'vux'
const TokenKey = 'token'

export function getToken() {
  return window.localStorage.getItem(TokenKey)
}

export function setToken(token) {
  return window.localStorage.setItem(TokenKey, JSON.stringify(token))
}

export function removeToken() {
  return window.localStorage.removeItem(TokenKey)
}
